var app = new Vue({
    el: '#app',
    data: {
        registered: false,
        openAccount: 0,// 0已开户，1 未开户，2开户中
        showLoading: false,
    },
    created: function () {
        sessionStorage.clear();
        this.getAccountInfo();
    },
    watch: {
        openAccount(val) {
            switch (val) {
                case 0:
                default:
                    break;
                case 1:
                    this.jump('register');
                    break;
                case 2:
                    this.$indicator.open({
                        text: '开户中...',
                        spinnerType: 'fading-circle'
                    })
            }
        }
    },
    methods: {
        getAccountInfo() {
            const openAccount = 0;
            this.openAccount = openAccount;
        },
        handleClick() {
            this.$toast(this.message);
        },
        jump(url, query) {
            utils.jump(url, query);
        },
        changeAccountStatus(openAccount) {
            this.openAccount = openAccount;
        }
    }
});